package com.k.demo.service;

import java.util.List;

import com.k.demo.entity.ShoppingCartDetail;

public interface ShoppingCartDetailService {

	ShoppingCartDetail selectByIdAndAttach(int shopping_cart_id,int food_id,String detail_attach);
	
	int insertShoppingCartDetail(ShoppingCartDetail shoppingCartDetail);
	
	int updateShoppingCartDetail(ShoppingCartDetail shoppingCartDetail);
	
    //假删除购物明细
	boolean deleteShoppingDetail(int detailID);
	

	//根据购物车明细ID查询明细，带有Food
	ShoppingCartDetail selectByDetailID(int cartID,int foodID,String detail_attach);
	
	boolean deleteDetail(ShoppingCartDetail shoppingCartDetail);

	//假删除购物车明细，批量
	boolean deleteShoppingDetailIn(List<Integer> list);

}
